Skip to content

Sourabh impl myspace#4626

Closed
sourabhbagde wants to merge 5 commits intoOneCommunityGlobal:developmentfrom
sourabhbagde:sourabh_impl_myspace
Closed

Sourabh impl myspace#4626
sourabhbagde wants to merge 5 commits intoOneCommunityGlobal:developmentfrom
sourabhbagde:sourabh_impl_myspace

Conversation

@sourabhbagde
Copy link
Copy Markdown
Contributor

Description

Implements the Slashdot auto-poster workflow.
Adds a dedicated Slashdot tab in the Announcements section where volunteers can compose Slashdot submissions, copy the prepared content, and follow the correct posting steps.
Validates required fields, provides clipboard copy buttons, and updates dark-mode styling so the new UI stays readable.
Suggest tags suggests for first 6 keywords from the headline and summary fields for the words that has added as stop words. Later can be added manually to the tags section on additional tags separated with comma.

Related PRS (if any):

None.

Main changes explained:

  • Create src/components/Announcements/platforms/slashdot/index.jsx for the Slashdot auto-poster form (headline/source URL/dept/tags/summary, copy buttons, preview, submit shortcut, tag suggestions).
  • Update src/components/Announcements/index.jsx to route the Slashdot tab to the new component instead of the generic SocialMediaComposer.
  • Extend src/components/Announcements/Announcements.css with Slashdot-specific card styling, dark-mode overrides, long-text wrapping, and chip truncation.

How to test:

  1. Checkout this branch.
  2. yarn install then npm run start:local
  3. Sign in as an admin and navigate to /announcements. (From Dashboard > Other Links > Send Emails > Slashdot)
  4. Select the “Slashdot” tab.
  5. Fill each field (headline 12–95 chars, valid URL, dept slug, at least one tag, 80+ char summary).
  6. Click the copy buttons to ensure clipboard feedback appears; hit “Copy full draft” once inputs are valid.
  7. Click “Open slashdot.org/submit” and confirm it opens in a new tab.
  8. Toggle dark mode and check if UI works same for dark mode.
  9. Enter very long URLs/tags/summary to verify the layout wraps without breaking cards.
  10. Check if success message upon copy fields and context is copied.
  11. Check if able to schedule the post by clicking schedule this post button.
  12. Check if date and time are working fine and able to assign to post.
  13. All buttons are working fine in Make Post and Scheduled Post tabs.

Screenshots or videos of changes:

slashdot.submit.mov

Note:

Slashdot still lacks a public submission API, this UI prepares content for manual submission.
Scheduled Post - now can be scheduled with calendar date and time as shown below.
Dark Mode still needs to be modified for friendly and Intro / Summary width will be adjusted with extra space.

@netlify
Copy link
Copy Markdown

netlify Bot commented Dec 26, 2025

👷 Deploy request for highestgoodnetwork-dev pending review.

Visit the deploys page to approve it

Name Link
🔨 Latest commit caaa3e8

@github-actions
Copy link
Copy Markdown

This PR has been closed because PRs from forks are not allowed. Please create a branch directly off the origin repository and resubmit your PR.

@github-actions github-actions Bot closed this Dec 26, 2025
@sonarqubecloud
Copy link
Copy Markdown

Quality Gate Failed Quality Gate failed

Failed conditions
1 Security Hotspot

See analysis details on SonarQube Cloud

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant